package com.woniuxy.common.mapper;

import com.woniuxy.common.entity.MarketAppraise;
import com.woniuxy.common.entity.MarketAppraiseExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MarketAppraiseMapper {
    long countByExample(MarketAppraiseExample example);

    int deleteByExample(MarketAppraiseExample example);

    int deleteByPrimaryKey(String id);

    int insert(MarketAppraise record);

    int insertSelective(MarketAppraise record);

    List<MarketAppraise> selectByExample(MarketAppraiseExample example);

    MarketAppraise selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") MarketAppraise record, @Param("example") MarketAppraiseExample example);

    int updateByExample(@Param("record") MarketAppraise record, @Param("example") MarketAppraiseExample example);

    int updateByPrimaryKeySelective(MarketAppraise record);

    int updateByPrimaryKey(MarketAppraise record);

    @Select("select * from market_appraise where receiveuser_id=#{userid} order by date DESC")
    List<MarketAppraise> selectByUserId(String userid);
}